package com.aolong.archives.core.sysmanage.entity;

import javax.persistence.Entity;

import com.aolong.archives.common.util.Const;
import com.rock.platform.entity.TreeEntity;
import com.rock.platform.util.SessionUtils;

@Entity
public class MenuTreeEntity extends TreeEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String pageUrl;
	private String menuCode;
	private String menuName;
	private String menuNameEn;
	
	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public String getMenuCode() {
		return menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getMenuNameEn() {
		return menuNameEn;
	}

	public void setMenuNameEn(String menuNameEn) {
		this.menuNameEn = menuNameEn;
	}
	public String getText() {
	
		if (SessionUtils.getAttributeText(SessionUtils.SKEY_LANGUAGE).equals(Const.LANGUAGE_zh_CN))
		{
			return this.getMenuName();
		}
		else
		{
			return this.getMenuNameEn();
		}
	}
}
